package ModelLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class CopyTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class CopyTest
{
    /**
     * Default constructor for test class CopyTest
     */
    public CopyTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }
    
    
    
    
    
    
    
    

    @Test
    public void testSetSerialNumber()
    {
        ModelLayer.Copy copy1 = new ModelLayer.Copy(11, 1977, 20, new DVD());
        copy1.setSerialNumber(15);
        assertEquals(15, copy1.getSerialNumber());
    }

    @Test
    public void testGetSerialNumber()
    {
        ModelLayer.Copy copy1 = new ModelLayer.Copy(11, 1977, 20, new DVD());
        assertEquals(11, copy1.getSerialNumber());
    }

    @Test
    public void testSetPurchaseDate()
    {
        ModelLayer.Copy copy1 = new ModelLayer.Copy(11, 1977, 20,new DVD());
        copy1.setPurchaseDate(1978);
        assertEquals(1978, copy1.getPurchaseDate());
    }

    @Test
    public void testGetPurchaseDate()
    {
        ModelLayer.Copy copy1 = new ModelLayer.Copy(11, 1977, 20, new DVD());
        assertEquals(1977, copy1.getPurchaseDate());
    }

    

    @Test
    public void testSetPurchasePrice()
    {
        ModelLayer.Copy copy1 = new ModelLayer.Copy(11, 1977, 20,new DVD());
        copy1.setPurchasePrice(21);
        assertEquals(21, copy1.getPurchasePrice());
    }

    @Test
    public void testGetPurchasePrice()
    {
        ModelLayer.Copy copy1 = new ModelLayer.Copy(11, 1977, 20,new DVD());
        assertEquals(20, copy1.getPurchasePrice());
    }
    
    
    @Test
    public void testSetSts()
    {
        Copy copy = new Copy (7777,6666,555555, new DVD());
        copy.setSts("omg");
        assertEquals("omg",copy.getSts());
    }
    
    
    
    
}








